package com.hanbitexam.action;

import java.util.List;

import com.hanbitexam.dao.FlexDao;
import com.hanbitexam.vo.FlexVo;

public class MainAction {
	List<FlexVo> list;
	
	public String execute(){
		return "success";
	}
	public String projectmain(){
		return "success";
	}	
	
	public String flexmain(){
		//FlexDao dao = new FlexDao();
		
		try {
			
			list = FlexDao.selectAll();
			System.out.println("class : "+list.get(0).getClass());
			System.out.println(list.size());
		} catch (Exception e) {
			e.printStackTrace();
		}
		return "success";
	}
	public List<FlexVo> getList() {
		return list;
	}
	public void setList(List<FlexVo> list) {
		this.list = list;
	}
}
